<template>
  <div class="study">
  	<div class="header">工作管理</div>
  	<!--数据加载动画 start-->
		<div class="loadingBox" v-show="status == 0">
			<div class="loading">
				<div>loading..</div>
				<div></div>
				<div></div>
			</div>
		</div>
		<!--数据加载动画 end-->
  	
		<!--加载完成后 start-->
  	<div class="loadingOver" v-show="status == 1">
			<div class="menuList">
				<div class="menuListTitle">
					<div class="menuListTitleText">学习教育</div>
				</div>
				<div class="menuListContent menuListContent1">
					<router-link to="/studyData" class="routerLink">
						<div class="wid100 hei100">
								<div class="imgBox">
									<img src="../assets/img/study1.png"/>
								</div>
								<span>会议内容</span>
						</div>
					</router-link>
				</div>
				<div class="menuListContent menuListContent2">
					<router-link to="/studyData" class="routerLink">
						<div class="wid100 hei100">
							<div class="imgBox">
								<img src="../assets/img/study2.png"/>
							</div>
							<span>党课学习</span>
						</div>
					</router-link>
				</div>
				<div class="menuListContent menuListContent3">
					<router-link to="/studyData" class="routerLink">
						<div class="wid100 hei100">
							<div class="imgBox">
								<img src="../assets/img/study3.png"/>
							</div>
							<span>活动日</span>
						</div>
					</router-link>
				</div>
				<div class="menuListContent menuListContent4">
					<router-link to="/studyData" class="routerLink">
						<div class="wid100 hei100">
							<div class="imgBox">
								<img src="../assets/img/study4.png"/>
							</div>
							<span>远程学习</span>
						</div>
					</router-link>
				</div>
			</div>
			
			<div class="menuListDemo">
				<div class="menuListTitle">
					<div class="menuListTitleText">党员管理</div>
				</div>
				<div class="menuListContent menuListContent1">
					<router-link to="/flowPartyMember" class="routerLink">
						<div class="wid100 hei100">
								<div class="imgBox">
									<img src="../assets/img/flowPartyMemberIcon.png"/>
								</div>
								<span>流动党员</span>
						</div>
					</router-link>
				</div>
				<div class="menuListContent menuListContent2">
					<router-link to="/ranking" class="routerLink">
						<div class="wid100 hei100">
							<div class="imgBox">
								<img src="../assets/img/partyMemberFormIcon.png"/>
							</div>
							<span>星级党员</span>
						</div>
					</router-link>
				</div>
			</div>
			
			<div class="menuListDemo">
				<div class="menuListTitle">
					<div class="menuListTitleText">工作部署</div>
				</div>
				<div class="menuListContent menuListContent1">
					<router-link to="/deployment" class="routerLink">
						<div class="wid100 hei100">
								<div class="imgBox">
									<img src="../assets/img/superiorArrangementIcon.png"/>
								</div>
								<span>上级安排</span>
						</div>
					</router-link>
				</div>
				<div class="menuListContent menuListContent2">
					<router-link to="/deployment" class="routerLink">
						<div class="wid100 hei100">
							<div class="imgBox">
								<img src="../assets/img/branchIcon.png"/>
							</div>
							<span>镇党委安排</span>
						</div>
					</router-link>
				</div>
			</div>
		</div>
		<!--加载完成 end-->
		
		<commonFooter :activeIndex="1"></commonFooter>
	</div>
</template>

<script>
import Api from 'assets/js/api';
import init from '../assets/js/init';
import commonFooter from './common/footer';

var api = new Api();
var result = localStorage.getItem('result');
var action = 'JYGL_UPDATEXXNRREADUSER';
export default {
  name: 'login',
  data () {
    return {
			studyForm:[],//接收数据
			status:'1',//默认加载状态为0
    }
  },
  activated(){
  	
  },
  components: {
			commonFooter,
		},
  methods:{
  	exchangeArray(val) {
			var Array = val.split(",");
			return Array.length;
		},
		
  },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
	@import url("../assets/css/common.css");
	.study{
		height: 100%;
	}
	.study .header{
		width: 100%;
		height: 40px;
		line-height: 40px;
		background-color: #f00;
		color: #fff;
		font-size: 0.75rem;
		text-align: center;
		font-weight: 700;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 2000;
	}
	
	.menuList{
		width: 100%;
		height: 6.25rem;
		overflow: hidden;
		padding-top: 40px;
		background-color: #fff;
		border-top: 1px solid #fff;
		margin-bottom: 0.5rem;
	}
	.menuListDemo{
		width: 100%;
		height: 6.25rem;
		overflow: hidden;
		background-color: #fff;
		border-top: 1px solid #fff;
		margin-bottom: 0.5rem;
	}
	.menuListTitle{
		margin-top: 0.25rem;
		margin-bottom: 0.25rem;
		width: 100%;
		height: 1.5rem;
		padding: 0 0.48rem;
		box-sizing: border-box;
	}
	.menuListTitleText{
		width: 100%;
		line-height: 1.5rem;
		font-size: 0.7rem;
		color: #333;
		border-bottom: 1px solid #e9e9e9;
	}
	.menuListContent{
		width: 25%;
		height: 4rem;
		float: left;
		text-align: center;
		font-size: 0.5rem;
		color: #333;
		box-sizing: border-box;
	}
	.menuListContent1{
		padding: 0.3rem 0.12rem 0.3rem 0.48rem;
	}
	.menuListContent2{
		padding: 0.3rem 0.24rem 0.3rem 0.36rem;
	}
	.menuListContent3{
		padding: 0.3rem 0.36rem 0.3rem 0.24rem;
	}
	.menuListContent4{
		padding: 0.3rem 0.48rem 0.3rem 0.12rem;
	}
	.hei100{
		height: 100%;
		box-sizing: border-box;
		border: 1px solid #e9e9e9;
		background-color: #fff;
	}
	.menuListContent .imgBox{
		width: 1.5rem;
		height: 1.5rem;
		margin: 0.35rem auto 0.3rem;
	}
	.menuListContent .imgBox img{
		max-width: 100%;
		max-height: 100%;
	}
	
	.routerLink{
		display: block;
		color: #333;
		height: 100%;
	}
	
	/*查看信息详情*/
	.viewDetail{
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 2001;
		background-color: rgba(0,0,0,0.5);
		box-sizing: border-box;
		padding: 1rem 1rem 4rem 1rem;
	}
	.viewDetailContent{
		width: 100%;
		height: 100%;
		background-color: #fff;
		box-sizing: border-box;
		padding: 0.5rem;
		text-align: center;
	}
	.viewDetailContent-title{
		width: 100%;
		font-size: 0.8rem;
		color: #333;
		text-align: center;
		margin-bottom: 0.5rem;
	}
	.viewDetailContent-info{
		width: 100%;
		height: 88%;
		font-size: 0.5rem !important;
		color: #666;
		text-align: left;
		/*text-indent: 1rem;*/
		line-height: 0.8rem;
		display:block;
		word-break: break-all;
		word-wrap: break-word;
		overflow-y: scroll;
	}
	.viewDetailContent-info p{
		line-height: 1rem !important;
	}
	.viewDetailContent-info p span{
		font-size: 0.5rem !important;
	}
	
	.viewDetailContent-info img{
		max-width: 100% !important;
    	width: initial !important;
    	height: initial !important;
	}
	.viewDetailContent-info table{
		width: initial !important;
		max-width: 100% !important;
	}
	.viewDetailClose{
		position: fixed;
		bottom: 2rem;
		left: 50%;
		margin-left: -0.75rem;
		font-size: 1.5rem;
		color: #fff;
		z-index: 2002;
	}
	
	
	
	/*加载动画*/
	.loadingBox{
		width: 100%;
		height: 100%;
		display: flex;
		display: -webkit-flex;
		flex-direction: column;
		-webkit-flex-direction: column;
		align-items: center;
		-webkit-align-items: center;
		justify-content: center;
		-webkit-justify-content: center;
	}
	.loading {
	    border-radius: 50%;
	    font-size: 20px;
	    height: 100px;
	    line-height: 90px;
	    position: relative;
	    text-align: center;
	    width: 100px;
	}
	.loading > div:nth-child(2) {
	    border-color: #FFF;
	    left: 0px;
	    width: 90px;
	}
	.loading > div:nth-child(3) {
	    border-color: #009933;
	    left: -5px;
	    width: 100px;
	    -webkit-animation-delay: 0.5s;
	    -moz-animation-delay: 0.5s;
	    -ms-animation-delay: 0.5s;
	    -o-animation-delay: 0.5s;
	    animation-delay: 0.5s;
	}
	.loading > div:nth-child(2), .loading > div:nth-child(3) {
	    background-color: rgba(255, 255, 255, 0.2);
	    border: 5px solid #FFF;
	    border-radius: 50%;
	    box-shadow: 0 0 5px 0 #f00;
	    height: 100px;
	    position: absolute;
	    top: 0px;
	    border-top-width: 0;
	    border-bottom-width: 0;
	    -webkit-animation: anim3 2s linear infinite;
	    -moz-animation: anim3 2s linear infinite;
	    -ms-animation: anim3 2s linear infinite;
	    -o-animation: anim3 2s linear infinite;
	    animation: anim3 2s linear infinite;
	}
	@keyframes anim3{
		0% {
		    transform: rotateY(0deg);
		}
		50% {
		    transform: rotateY(180deg);
		}
		100% {
		    transform: rotateY(360deg);
		}
	}
</style>
